// 文档
const path = require("path");
module.exports = {
  helpList: [
    {
      title: "码云地址！！",
      content: [
        {
          title: "码云地址！！",
          content:
            `<a href='https://gitee.com/superliuge/ABuild' target='_blank'>https://gitee.com/superliuge/ABuild</a>`,
        },
       
      ],
    },
    {
      title: "ABuild说明",
      content: [
        {
          title: "ABuild是什么？",
          content:
            `<p>ABuild是一个本地打包安卓ios的工具，可以快速打包Android和iOS的项目。为了省一块钱和不排队，本质上还是uniapp的本地打包。</p>
            <p>只需要正常开发uniapp项目，然后使用ABuild打包，就可以快速打包安卓和ios的项目。</p>
            <p>节省每次sdk都需要重新配置项目的问题。</p>
            <p> 没有修改成本，只要项目正常运行，就可以使用ABuild打包。</p>
            `,
        },
        {
          title: "ABuild的使用场景",
          content: `
            <p>需要打包安卓ios的项目都可以使用</p>
           `,
        },
        {
          title: "ABuild的限制",
          content: `
            <p>uniapp做了限制，自定义打包需要的appkey需要他们自己的云端证书</p>
            <p class='flex-col flex-ac'>
              <img src='/qm.png' />
              <a href='/qm.png' target='_blank'>查看大图</a>
            </p>
           `,
        }
      ],
    },
    {
      title: "运行环境！！！！重要",
      content: [
        {
          title: "node",
          content: `
          <h3 style='color:red' >node版本必须大于14.4.0，项目里使用的 fs.rm()api 是14.4才有的新功能所以必须要大于等于14.4.0 </h3>
          `
        },
        {
          title: "安卓打包环境 java sdk gradle ",
          content: `
          <h3 style='color:red' >window环境</h3>
            <h4>java</h4>
              <p> <a href='https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html' target='_blank'>下载安装java  https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html </a></p>
              <p> <a  href='https://jingyan.baidu.com/article/7082dc1c0bd54da50a89bdb8.html' target='_blank'>配置环境变量  https://jingyan.baidu.com/article/7082dc1c0bd54da50a89bdb8.html </a></p>
            <h4>sdk</h4>
            <p>安装 android studio 使用android studio安装sdk</p>
            <h4>gradle</h4>
            <p>使用android studio安装gradle</p>
            <p>项目里面使用./gradlew assembleRelease 即可</p>
          <h3 style='color:red' >linux环境 举例centos</h3>
            <h4>java</h4>
              <p>yum list java-1.8*^C</p>
              <p>yum install java-1.8.0-openjdk* -y</p>
            <h4>sdk</h4>
              <p>wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip</p>
              <p>unzip sdk-tools-linux-3859397.zip -d /usr/local/sdk/</p>
              <p>rm -rf sdk-tools-linux-3859397.zip</p>
              <p>cd /usr/local/sdk/tools/bin</p>
              <p>./sdkmanager --list 查看具体的build-tools 是否有30.0.2   一般都有可以不执行</p>
              <p>./sdkmanager "build-tools;30.0.2" "platforms;android-30" "platform-tools"</p>
            <h4>gradle</h4>
              <p>wget https://downloads.gradle-dn.com/distributions/gradle-6.7.1-all.zip</p>
              <p>unzip gradle-6.7.1-all.zip  -d /usr/local/gradle/</p>
              <p>rm -rf gradle-6.7.1-all.zip</p>
            <h4>环境变量</h4>
              <p>打开环境变量文件</p>
              <p>vim /etc/profile</p>
              <p>把下面的内容复制进去</p>
              <div style='text-indent:80px' >
                <p>#java </p>
                <p>export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk  </p>
                <p>export JRE_HOME=$JAVA_HOME/jre  </p>
                <p>export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH  </p>
                <p>export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:./  </p>
                <p>#sdk  </p>
                <p>export ANDROID_HOME=/usr/local/sdk  </p>
                <p>export PATH=$ANDROID_HOME/tools:$PATH  </p>
                <p>export PATH=$ANDROID_HOME/platform-tools:$PATH  </p>
                <p>#gradle  </p>
                <p>export PATH=$PATH:/usr/local/gradle/gradle-6.7.1/bin  </p>
              </div>
              <p>保存退出，重载环境变量</p>
              <p>source /etc/profile</p>
              <p>查看java java -version</p>
              <p>查看gradle gradle -v</p>
          <h3 style='color:red' >mac环境</h3>
            <h4>java</h4>
              <p>国内下载 http://www.codebaoku.com/jdk/jdk-index.html</p>
              <p>如果有多版本jdk的话可以做多jdk配置</p>
            <h4>sdk</h4>
              <p>brew install android-sdk</p>
              <p>brew install android-platform-tools</p>
              <p>去文档下面建个目录来管理sdk </p>
              <p>mkdir /Users/apple/Documents/systemTools/sdk</p>
              <p>然后把sdk移动到这个目录下  使用open打开目录 然后把它们下面对应的文件复制到自己建的sdk目录下面<p>
              <p>open /usr/local/Caskroom</p>
              <p>移动到对应目录下载sdk </p>
              <img src='/macsdk1.png' />
              <p>cd /Users/apple/Documents/systemTools/sdk/tools/bin</p>
              <p>./sdkmanager --list 查看具体的build-tools 是否有30.0.2   一般都有可以不执行</p>
              <p>执行  ./sdkmanager "build-tools;30.0.2" "platforms;android-30" "platform-tools"</p>
              <p>执行完成应该是这样 </p>
              <img src='/macsdk2.png' />
            <h4>gradle</h4>
              <p>brew install gradle@6</p>
            <h4>环境变量</h4>
              <p>打开环境变量文件</p>
              <p>open ~/.bash_profile</p>
              <p>把下面的内容复制进去</p>
              <div style='text-indent:80px' >
                  <p># JAVA 多java环境 请根据实际配置</p>
                  <p># mac终端执行命令  进入并展示本地jdk各版本 </p>
                  <p># cd /Library/Java/JavaVirtualMachines/ </p>
                  <p># ls           </p>          
                  <p>#列出各版本 挑选合适的使用 </p>
                  <p>java19=/Users/apple/Library/Java/JavaVirtualMachines/openjdk-19.0.2/Contents/Home </p>
                  <p>java8=/Users/apple/Library/Java/JavaVirtualMachines/jdk1.8.0_341.jdk/Contents/Home </p>
                  <p>java11=/Library/Java/JavaVirtualMachines/jdk-11.0.16.1.jdk/Contents/Home </p>
                  <p># default jdk8 指定全局变量默认使用java8对应的jdk1.8 </p>
                  <p>export JAVA_HOME=$java8 </p>
                  <p>#可以在终端中执行命令 java8 或java11 用来切换当前java的全局变量（切换当前java版本） </p>
                  <p>alias java8="export JAVA_HOME=$java8" </p>
                  <p>alias java19="export JAVA_HOME=$java19" </p>
                  <p>alias java11="export JAVA_HOME=$java11" </p>
                  <p>java 请根据实际配置 </p>
                    <br />
                  <p>#sdk 如果上面执行了mkdir /Users/apple/Documents/systemTools/sdk 下面可以无脑复制 </p>
                  <p>export ANDROID_HOME=/Users/apple/Documents/systemTools/sdk</p>
                  <p>export PATH=$PATH:$ANDROID_HOME/tools</p>
                  <p>export PATH=$PATH:$ANDROID_HOME/platform-tools</p>

                  <p>#gradle</p>
                  <p>export GRADLE=/usr/local/Cellar/gradle@6/6.9.4/bin</p>
                  <p>export PATH=$PATH:$GRADLE</p>
              </div>
              <p>保存退出，重载环境变量</p>
              <p>source ~/.bash_profile</p>
              <p>查看java java -version</p>
              <p>查看gradle gradle -v</p>
          `
        },
      ]
    },
    {
      title: "打包安卓",
      content: [
        {
          title: "上传 uniapp 打包sdk",
          content: `
          <p>上传sdk有两个方式 本地上传和服务器，如果部署在远程选择线上<p>  
          <p class='flex-col flex-ac'>
            <img src='/sdk1.png' />
            <a href='/sdk1.png' target='_blank'>查看大图</a>
          </p> 
          <p class='flex-col flex-ac'>
            <img src='/sdk2.png' />
            <a href='/sdk2.png' target='_blank'>查看大图</a>
          </p> 
          <p class='flex-col flex-ac'>
            <img src='/sdk3.png' />
            <a href='/sdk3.png' target='_blank'>查看大图</a>
          </p>
          <p class='flex-col flex-ac'>
            <img src='/sdk4.png' />
            <a href='/sdk4.png' target='_blank'>查看大图</a>
          </p>
          <p class='flex-col flex-ac'>
            <img src='/sdk5.png' />
            <a href='/sdk5.png' target='_blank'>查看大图</a>
          </p>
          `
        },
        {
          title: "创建项目",
          content: `
          <p>创建项目前需，获取到证书appkey，git地址；git尽量使用ssh方式拉取<p>  
          <p>获取证书详情去https://dev.dcloud.net.cn/pages/app/list 打开你的项目<p>  
          <p class='flex-col flex-ac'>
            <img src='/zs1.png' />
            <a href='/zs1.png' target='_blank'>查看大图</a>
          </p> 
          <p class='flex-col flex-ac'>
            <img src='/zs2.png' />
            <a href='/zs2.png' target='_blank'>查看大图</a>
          </p> 
          <p class='flex-col flex-ac'>
            <img src='/zs3.png' />
            <a href='/zs3.png' target='_blank'>查看大图</a>
          </p>
          <p class='flex-col flex-ac'>
            <img src='/zs4.png' />
            <a href='/zs4.png' target='_blank'>查看大图</a>
          </p>
          <p class='flex-col flex-ac'>
            <img src='/zs5.png' />
            <a href='/zs5.png' target='_blank'>查看大图</a>
          </p>
          <p>获取appkey也在证书详情附近<p>  
          <p class='flex-col flex-ac'>
            <img src='/appkey1.png' />
            <a href='/appkey1.png' target='_blank'>查看大图</a>
          </p> 
          <p class='flex-col flex-ac'>
            <img src='/appkey2.png' />
            <a href='/appkey2.png' target='_blank'>查看大图</a>
          </p> 
          <p class='flex-col flex-ac'>
            <img src='/appkey3.png' />
            <a href='/appkey3.png' target='_blank'>查看大图</a>
          </p>
          <p class='flex-col flex-ac'>
            <img src='/appkey4.png' />
            <a href='/appkey4.png' target='_blank'>查看大图</a>
          </p>
          <p>获取到上面信息后创建项目<p>  
          <p class='flex-col flex-ac'>
            <img src='/create1.png' />
            <a href='/create1.png' target='_blank'>查看大图</a>
          </p>
          <p class='flex-col flex-ac'>
            <img src='/create2.png' />
            <a href='/create2.png' target='_blank'>查看大图</a>
          </p>
          <p class='flex-col flex-ac'>
            <img src='/create3.png' />
            <a href='/create3.png' target='_blank'>查看大图</a>
          </p>
          `
        },
        {
          title: "打包前准备",
          content: `
          <p>创建项目后需要检查git是否取消忽略/unpackage目录<p>  
          <p class='flex-col flex-ac'>
            <img src='/base1.png' />
            <a href='/base1.png' target='_blank'>查看大图</a>
          </p>
          <p>在hbuildex里面选择好logo和启动图后提交<p>  
          <p class='flex-col flex-ac'>
            <img src='/base2.png' />
            <a href='/base2.png' target='_blank'>查看大图</a>
          </p>
          <p class='flex-col flex-ac'>
            <img src='/base3.png' />
            <a href='/base3.png' target='_blank'>查看大图</a>
          </p>
          <p class='flex-col flex-ac'>
            <img src='/base4.png' />
            <a href='/base4.png' target='_blank'>查看大图</a>
          </p>
          `
        },
        {
          title: "打包",
          content: `
          <p>准备工作做完就可以打包了<p>  
          <p class='flex-col flex-ac'>
            <img src='/build1.png' />
            <a href='/build1.png' target='_blank'>查看大图</a>
          </p>
          <p class='flex-col flex-ac'>
            <img src='/build2.png' />
            <a href='/build2.png' target='_blank'>查看大图</a>
          </p>
          <p class='flex-col flex-ac'>
            <img src='/build3.png' />
            <a href='/build3.png' target='_blank'>查看大图</a>
          </p>
          `
        },
      ]
    },
    {
      title: "打包ios",
      content: [
        {
          title: "暂未完善",
          content: "--"
        },
      ]
    },
    {
      title: "常见问题",
      content: [
        {
          title: "加群反馈",
          content: "加群反馈问题 <a href='http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=KR7gQP5QTYxkFan0bzz6WuFNj4HPQPbJ&authKey=5Oy0ACeOlH9mPj5XB56OabkVV56fl4MnlB43%2BDkMMonnDyg0Ty99bQ3ljjuRfHNF&noverify=0&group_code=334014763' > 点击加群 </a> "
        },
        {
          title: "暂无反馈",
          content: "--"
        },
      ]
    }
  ]
};
